package by.admonko.universaltesting.services;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import by.admonko.universaltesting.datamodel.UserGroup;

public interface UserGroupService {
	@Transactional
	UserGroup getGoup(Integer id);

	@Transactional
	List<UserGroup> getAllGroups();

	@Transactional
	void setGroup(UserGroup userGroup);

	@Transactional
	void updateGroup(UserGroup userGroup);

	@Transactional
	void removegroup(Integer id);

	@Transactional
	void removeAllGroups();
}
